package org.jeecg.modules.htxincailiao.account.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.util.SmartVerificationUtil;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class HTValidateUserDTO {

    /**用户名*/
    @NotEmpty(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String username;

    /**手机号*/
    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = SmartVerificationUtil.PHONE_REGEXP, message = "手机号格式不正确")
    @ApiModelProperty(value = "手机号")
    private String phoneNumber;
}
